<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			span{
				display: inline-block;
				width: 80px;
				height: 30px;
				background: #333;
				color: #fff;
				text-align: center;
				line-height: 30px;
				margin-bottom: 10px;
				margin-right: 10px;
			}
		</style>
	</head>
	<body>
		<script type="text/javascript">
			// ..打印三角形
			var sum;
			for (var i = 1; i <= 9; i++) {
				for (var j = 1; j-1 < i; j++) {
					sum = i*j;
					document.write('<span>'+i+'x'+j+'='+i*j+'</span>')

				}
					document.write("<br />")
			}
		</script>
	</body>
</html>
